<template>
  <div>
    父组件内容：{{ parentMessage }}
    <child :message="parentMessage"></child>
  </div>
</template>

<script setup>
import child from './child.vue';

const parentMessage = '来自父组件的消息';
</script>